function chkuser(frm){
   
   if(frm['roletype'].value== ""){
       alert("please select role");
        frm['roletype'].focus();
         return false;
    } 
   if(frm['languagetype'].value== ""){
       alert("please select language");
        frm['languagetype'].focus();
         return false;
    } 	 
     
  if(frm['usernm'].value== ""){
       alert("please insert username");
        frm['usernm'].focus();
         return false;
    }  

  if(frm['user'].value== ""){
       alert("please insert userid");
        frm['user'].focus();
         return false;
    }  
  
  if(frm['password'].value== ""){
       alert("please insert password");
        frm['password'].focus();
         return false;
    }  
 if(frm['detail'].value== ""){
       alert("please insert user details");
        frm['detail'].focus();
         return false;
    }  
  
 
  }  
    
